package com.ijunfu.lambda._01_array;

import java.util.Arrays;

/**
 *
 * @Title  : 遍历数组
 * @Author : ijunfu <ijunfu@163.com>
 * @Date   : 2023/11/18 13:23
 * @Version: 1.0
 * @Motto  : 世界很大 世界很小
 *
 */
public class Main {

    public static void main(String[] args) {
        String[] fruits = {"banana", "apple", "pear", "grapefruit", "orange"};

        for(String fruit: fruits) {
            System.out.println(fruit);
        }

        System.out.println("==========================");

        Arrays.stream(fruits).forEach(System.out::println);
    }
}
